<template>
	<div>
		<h1>当前num值：{{this.$store.state.num}}</h1>
		<button @click="add()">num++</button>
	</div>
</template>

<script>
	export default {
		name: 'giao',
		methods: {
			add() {
				this.$store.commit('addNum');

			}
		}
	}
</script>

<style>
</style>
